package com.javasvip.serviceemail.service.impl;

import com.javasvip.common.pojo.AuthCode;
import com.javasvip.serviceemail.dao.AuthCodeDao;
import com.javasvip.serviceemail.service.AuthCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AuthCodeServiceImpl implements AuthCodeService {
    @Autowired
    AuthCodeDao authCodeDao;
    public List<AuthCode> all(){
        return authCodeDao.findAll();
    }

    @Override
    public void save(AuthCode authCode) {
        authCodeDao.save(authCode);
    }

}
